CygNet Studio > Using CygNet Studio Tools and Controls > Rotary Switch Tool > ActiveX Properties

Rotary Switch Tool - ActiveX Properties

The Rotary Switch Tool is an ActiveX control. As such, a Rotary Switch Tool object has an ActiveX page on the Property Sheet. Many of these properties are the object’s formatting properties. Values for the ActiveX Properties can be set directly on the ActiveX page or in the OCX Properties dialog box, which is accessed by clicking the (OCXProperties) property.

Property Description Related Properties

AutoFrameRate

Specifies whether the object controls its update rate. Default is 0 - No. When set to 1 - Yes, the object is repainted at the rate specified by the UpdateFrameRate property.

UpdateFrameRate

BackGroundColor

Specifies the color of the object background. Default is gray (RGB 236.233.216). The background color is not shown if the Transparent property is set to 1 - Yes.

Transparent

BackGroundPicture

BackGroundPicture

Specifies the name of an image file to show on the background of the object. Default is blank.

Note: Although Windows Metafile (.wmf) is listed as a format option, this file format is not supported.

 

Enabled

Enables user interaction with the object. If set to 0 - No, the object is still shown but its context menu is disabled. Default is 1 - Yes.

 

Height

Specifies the height (in pixels) of the object.

 

KeyArrowStepSize

Specifies the increment applied to the switch position when the arrow keys are pressed. Default is 1.

 

KeyPageStepSize

Specifies the increment applied to the switch position when the Page Up or Page Down keys are pressed. Default is 2.

 

MouseControlStyle

Specifies if the pointer has to be dragged to change the position or if an indicator can be clicked. Default is 0 - imcsGoTo, which means the indicator can be clicked.

 

OffsetX

Specifies the offset of the object from its x-axis. Default is 0.

 

OffsetY

Specifies the offset of the object from its y-axis. Default is 0.

 

OptionSaveAllProperties

Enables the SaveAllPropertiesToFile method to save just the ActiveX Properties or all object properties. Default is 0 - No, which means that only ActiveX Properties are saved.

 

PointerColor

Specifies the color of the pointer. Default is gray (RGB 236.233.216).

PointerStyle

PointerHeight

Specifies the height (in pixels) of the pointer. Default is 4.

PointerLength

PointerHighLightColor

Specifies the pointer highlight color. Default is white (RGB 255.255.255).

PointerColor

PointerLength

Specifies the length (in pixels) of the pointer. Default is 25.

PointerWidth

PointerStyle

Specifies the pointer style. Default is 0 - isrpsPointer. Other option is 1 - isrpsRectangle.

 

Position

Specifies the starting position of the pointer. Default is 0. In Run mode the position is determined by the point associated with the object.

 

PositionIndicatorBevelStyle

Specifies the outer bevel style of the position indicator. Default is 2 - ibsLowered. Other options are 0 - ibsNone and 1 - ibsRaised.

 

PositionIndicatorColor

Specifies the color of the position indicator. Default is cyan (RGB 0.255.255).

PositionIndicatorStyle

PositionIndicatorMargin

Specifies the margin (in pixels) between the position indicators and the pointer. Default is 10.

 

PositionIndicatorSize

Specifies the size (in pixels) of the position indicator. Default is 3.

 

PositionLabelActiveFont

Specifies the font of the active position label. Default is MS Sans Serif (8 point).

PositionLabelActiveFontColor

PositionLabelActiveFontColor

Specifies the color of the active position label font. Default is black (RGB 0.0.0).

PositionLabelActiveFont

PositionLabelAlignment

Specifies the position label alignment. Default is 0 - ilaCenter. Other option is 1 - ilaJustified.

 

PositionLabelInactiveFont

Specifies the font of the inactive position labels. Default is MS Sans Serif (8 point).

PositionLabelActiveFontColor

PositionLabelInactiveFontColor

Specifies the color of the inactive position label font. Default is black (RGB 0.0.0).

PositionLabelActiveFont

PositionLabelMargin

Specifies the margin (in pixels) between the position labels and the position label indicators. Default is 15.

 

PositionLabels

Specifies default position labels. In Run mode these labels will be replaced by the enumeration table values or descriptions.

[PositionLabel]

[PositionOrder]

RotationDesiredSpacing

Specifies the spacing (in degrees) between indicator positions. Default is 1 - irds45. Other options are 0 - irds22p5, 2 - irds90.

 

RotationStartDegrees

Specifies the position (in degrees) at which the switch starts its clockwise rotation. Default is 4 - irsd180. Other options are 0 - irsd000, 1 - irsd045, 2 - irsd090, 3-irsd135, and 5 - irsd225.

 

ShowFocusRect

Enables display of the focus rectangle.

Tabstop

ShowPositionIndicators

Enables display of the position indicators. Default is 1 - Yes.

PositionIndicatorColor

PositionIndicatorSize

ShowPositionLabels

Enables the display of the position labels. Default is 1 - Yes.

 

Transparent

Enables transparency of the object background. Default is 0 - No.

 

UpdateFrameRate

Specifies the rate (in seconds) of repainting the object. Default is 60. Applicable only when AutoFrameRate is set to 1 - Yes.

AutoFrameRate

Visible

Enables the visibility of the object on TheView. Default is 1 - Yes.

 

Width

Specifies the width (in pixels) of the object.

 
Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.